* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #app {
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

// 登录页面样式
.login-container {
  height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  .login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    
    .login-illustration {
      text-align: center;
      
      .illustration-svg {
        width: 400px;
        height: 300px;
        margin-bottom: 30px;
      }
      
      h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        font-weight: 300;
      }
      
      p {
        font-size: 1.2rem;
        opacity: 0.9;
        line-height: 1.6;
      }
    }
  }
  
  .login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    
    .login-form {
      background: white;
      padding: 40px;
      border-radius: 15px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      width: 400px;
      
      .login-title {
        text-align: center;
        margin-bottom: 30px;
        color: #333;
        font-size: 1.8rem;
        font-weight: 500;
      }
      
      .captcha-container {
        display: flex;
        gap: 10px;
        
        .captcha-input {
          flex: 1;
        }
        
        .captcha-image {
          width: 100px;
          height: 40px;
          background: #f0f0f0;
          border: 1px solid #ddd;
          border-radius: 4px;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          font-family: 'Courier New', monospace;
          font-weight: bold;
          color: #666;
          user-select: none;
        }
      }
    }
  }
}

// 后台布局样式
.admin-layout {
  height: 100vh;
  
  .admin-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    .header-left {
      display: flex;
      align-items: center;
      
      .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: #409eff;
        margin-right: 30px;
      }
    }
    
    .header-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }
  }
  
  .admin-main {
    height: calc(100vh - 60px);
    display: flex;
    
    .admin-sidebar {
      width: 250px;
      background: #304156;
      overflow-y: auto;
      
      &.collapsed {
        width: 64px;
      }
    }
    
    .admin-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: #f0f2f5;
      
      .content-tabs {
        background: white;
        border-bottom: 1px solid #e6e6e6;
      }
      
      .content-main {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
      }
    }
  }
}

// 自定义滚动条
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}